﻿namespace Agile.Service.Admin.Model.ViewModel.New
{
    public class InsertNewInfoRequest
    {
        ///<summary>标题</summary>
        [Required]
        public string Title { get; set; }

        ///<summary>内容</summary>
        [Required]
        public string Content { get; set; }

        ///<summary>联系电话</summary>
        public string Tel { get; set; }

        ///<summary>浏览量</summary>
        public int Visits { get; set; }

        ///<summary>图片附件ID</summary>
        public List<long> AttachIDList { get; set; }
    }

    public class UpdateNewInfoRequest : InsertNewInfoRequest
    {
        ///<summary>信息ID</summary> 
        public long NewID { get; set; }
    }

    public class QueryPageNewInfoRequest : PageRequestModel
    {
        ///<summary>关键字</summary> 
        public string KeyWords { get; set; }

        ///<summary>开始时间</summary>
        public DateTime? StartDate { get; set; }

        ///<summary>结束时间</summary>
        public DateTime? EndDate { get; set; }
    }

    public class QueryPageInfoNewInfoRequest : PageRequestModel
    {  
        ///<summary>标题</summary>
        public string Title { get; set; }

        ///<summary>开始时间</summary>
        public DateTime? StartDate { get; set; }

        ///<summary>结束时间</summary>
        public DateTime? EndDate { get; set; }

        ///<summary>发布时间</summary>
        public DateTime[]? CreateTime { get; set; }

        ///<summary>审核状态</summary>
        public string AuditStatusCode { get; set; }
    }

    public class AuditNewInfoRequest
    {
        ///<summary>信息ID</summary> 
        public long NewID { get; set; }

        ///<summary>审核状态</summary>
        [Required]
        public string AuditStatusCode { get; set; }

        ///<summary>原因</summary>
        public string Reason { get; set; }
    }

    public class BatchAuditNewInfoRequest
    {
        ///<summary>信息ID</summary> 
        public long[] NewIDs { get; set; }

        ///<summary>审核状态</summary>
        [Required]
        public string AuditStatusCode { get; set; }

        ///<summary>原因</summary>
        public string Reason { get; set; }
    }
}
